package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品信息对象 my_commodity
 * 
 * @author ruoyi
 * @date 2024-01-13
 */
public class MyCommodity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String description;

    /** 商品分类 */
    @Excel(name = "商品分类")
    private Long classes;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 现有库存量 */
    @Excel(name = "现有库存量")
    private Long number;

    /** 上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date upTime;

    /** 下架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date desTime;

    /** 品牌 */
    @Excel(name = "品牌")
    private String bands;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String image;

    /** 销售状态 */
    @Excel(name = "销售状态")
    private String states;

    /** 详细规格参数 */
    @Excel(name = "详细规格参数")
    private String parameter;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setClasses(Long classes) 
    {
        this.classes = classes;
    }

    public Long getClasses() 
    {
        return classes;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setUpTime(Date upTime) 
    {
        this.upTime = upTime;
    }

    public Date getUpTime() 
    {
        return upTime;
    }
    public void setDesTime(Date desTime) 
    {
        this.desTime = desTime;
    }

    public Date getDesTime() 
    {
        return desTime;
    }
    public void setBands(String bands) 
    {
        this.bands = bands;
    }

    public String getBands() 
    {
        return bands;
    }
    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setStates(String states) 
    {
        this.states = states;
    }

    public String getStates() 
    {
        return states;
    }
    public void setParameter(String parameter) 
    {
        this.parameter = parameter;
    }

    public String getParameter() 
    {
        return parameter;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("classes", getClasses())
            .append("price", getPrice())
            .append("number", getNumber())
            .append("upTime", getUpTime())
            .append("desTime", getDesTime())
            .append("bands", getBands())
            .append("supplier", getSupplier())
            .append("image", getImage())
            .append("states", getStates())
            .append("parameter", getParameter())
            .toString();
    }
}
